Optimal. Leaf size=177 \[ -\frac{d^2 \left (a+b \text{sech}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{3} e^2 x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{b d^2 \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \sqrt{1-c^2 x^2}}{x}+\frac{b e \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \left (12 c^2 d+e\right ) \sin ^{-1}(c x)}{6 c^3}-\frac{b e^2 x \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \sqrt{1-c^2 x^2}}{6 c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13156, antiderivative size = 177, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {270, 6301, 12, 1265, 388, 216} \[ -\frac{d^2 \left (a+b \text{sech}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{3} e^2 x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{b d^2 \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \sqrt{1-c^2 x^2}}{x}+\frac{b e \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \left (12 c^2 d+e\right ) \sin ^{-1}(c x)}{6 c^3}-\frac{b e^2 x \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \sqrt{1-c^2 x^2}}{6 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 270
Rule 6301
Rule 12
Rule 1265
Rule 388
Rule 216
Rubi steps
\begin{align*} \int \frac{\left (d+e x^2\right )^2 \left (a+b \text{sech}^{-1}(c x)\right )}{x^2} \, dx &=-\frac{d^2 \left (a+b \text{sech}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{3} e^2 x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\left (b \sqrt{\frac{1}{1+c x}} \sqrt{1+c x}\right ) \int \frac{-3 d^2+6 d e x^2+e^2 x^4}{3 x^2 \sqrt{1-c^2 x^2}} \, dx\\ &=-\frac{d^2 \left (a+b \text{sech}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{3} e^2 x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{3} \left (b \sqrt{\frac{1}{1+c x}} \sqrt{1+c x}\right ) \int \frac{-3 d^2+6 d e x^2+e^2 x^4}{x^2 \sqrt{1-c^2 x^2}} \, dx\\ &=\frac{b d^2 \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{x}-\frac{d^2 \left (a+b \text{sech}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{3} e^2 x^3 \left (a+b \text{sech}^{-1}(c x)\right )-\frac{1}{3} \left (b \sqrt{\frac{1}{1+c x}} \sqrt{1+c x}\right ) \int \frac{-6 d e-e^2 x^2}{\sqrt{1-c^2 x^2}} \, dx\\ &=\frac{b d^2 \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{x}-\frac{b e^2 x \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{6 c^2}-\frac{d^2 \left (a+b \text{sech}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{3} e^2 x^3 \left (a+b \text{sech}^{-1}(c x)\right )+-\frac{\left (b \left (-12 c^2 d e-e^2\right ) \sqrt{\frac{1}{1+c x}} \sqrt{1+c x}\right ) \int \frac{1}{\sqrt{1-c^2 x^2}} \, dx}{6 c^2}\\ &=\frac{b d^2 \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{x}-\frac{b e^2 x \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{6 c^2}-\frac{d^2 \left (a+b \text{sech}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{3} e^2 x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{b e \left (12 c^2 d+e\right ) \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sin ^{-1}(c x)}{6 c^3}\\ \end{align*}
Mathematica [C] time = 0.24164, size = 158, normalized size = 0.89 \[ \frac{2 a c^3 \left (-3 d^2+6 d e x^2+e^2 x^4\right )-b c \sqrt{\frac{1-c x}{c x+1}} (c x+1) \left (e^2 x^2-6 c^2 d^2\right )+2 b c^3 \text{sech}^{-1}(c x) \left (-3 d^2+6 d e x^2+e^2 x^4\right )+i b e x \left (12 c^2 d+e\right ) \log \left (2 \sqrt{\frac{1-c x}{c x+1}} (c x+1)-2 i c x\right )}{6 c^3 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.187, size = 197, normalized size = 1.1 \begin{align*} c \left ({\frac{a}{{c}^{4}} \left ({\frac{{c}^{3}{x}^{3}{e}^{2}}{3}}+2\,{c}^{3}xde-{\frac{{d}^{2}{c}^{3}}{x}} \right ) }+{\frac{b}{{c}^{4}} \left ({\frac{{e}^{2}{\rm arcsech} \left (cx\right ){c}^{3}{x}^{3}}{3}}+2\,{\rm arcsech} \left (cx\right ){c}^{3}xde-{\frac{{\rm arcsech} \left (cx\right ){d}^{2}{c}^{3}}{x}}+{\frac{1}{6}\sqrt{-{\frac{cx-1}{cx}}}\sqrt{{\frac{cx+1}{cx}}} \left ( 6\,\sqrt{-{c}^{2}{x}^{2}+1}{c}^{4}{d}^{2}+12\,\arcsin \left ( cx \right ){c}^{3}xde-{c}^{2}{x}^{2}{e}^{2}\sqrt{-{c}^{2}{x}^{2}+1}+\arcsin \left ( cx \right ) cx{e}^{2} \right ){\frac{1}{\sqrt{-{c}^{2}{x}^{2}+1}}}} \right ) } \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.52381, size = 205, normalized size = 1.16 \begin{align*} \frac{1}{3} \, a e^{2} x^{3} +{\left (c \sqrt{\frac{1}{c^{2} x^{2}} - 1} - \frac{\operatorname{arsech}\left (c x\right )}{x}\right )} b d^{2} + \frac{1}{6} \,{\left (2 \, x^{3} \operatorname{arsech}\left (c x\right ) - \frac{\frac{\sqrt{\frac{1}{c^{2} x^{2}} - 1}}{c^{2}{\left (\frac{1}{c^{2} x^{2}} - 1\right )} + c^{2}} + \frac{\arctan \left (\sqrt{\frac{1}{c^{2} x^{2}} - 1}\right )}{c^{2}}}{c}\right )} b e^{2} + 2 \, a d e x + \frac{2 \,{\left (c x \operatorname{arsech}\left (c x\right ) - \arctan \left (\sqrt{\frac{1}{c^{2} x^{2}} - 1}\right )\right )} b d e}{c} - \frac{a d^{2}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.45177, size = 614, normalized size = 3.47 \begin{align*} \frac{2 \, a c^{3} e^{2} x^{4} + 12 \, a c^{3} d e x^{2} - 6 \, a c^{3} d^{2} - 2 \,{\left (12 \, b c^{2} d e + b e^{2}\right )} x \arctan \left (\frac{c x \sqrt{-\frac{c^{2} x^{2} - 1}{c^{2} x^{2}}} - 1}{c x}\right ) + 2 \,{\left (3 \, b c^{3} d^{2} - 6 \, b c^{3} d e - b c^{3} e^{2}\right )} x \log \left (\frac{c x \sqrt{-\frac{c^{2} x^{2} - 1}{c^{2} x^{2}}} - 1}{x}\right ) + 2 \,{\left (b c^{3} e^{2} x^{4} + 6 \, b c^{3} d e x^{2} - 3 \, b c^{3} d^{2} +{\left (3 \, b c^{3} d^{2} - 6 \, b c^{3} d e - b c^{3} e^{2}\right )} x\right )} \log \left (\frac{c x \sqrt{-\frac{c^{2} x^{2} - 1}{c^{2} x^{2}}} + 1}{c x}\right ) +{\left (6 \, b c^{4} d^{2} x - b c^{2} e^{2} x^{3}\right )} \sqrt{-\frac{c^{2} x^{2} - 1}{c^{2} x^{2}}}}{6 \, c^{3} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{asech}{\left (c x \right )}\right ) \left (d + e x^{2}\right )^{2}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (e x^{2} + d\right )}^{2}{\left (b \operatorname{arsech}\left (c x\right ) + a\right )}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]